package com.xxx.controller;

import com.xxx.feignclient.ProductClient;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author blijojo
 * @date 2021/5/30
 */
@RestController
@Slf4j
public class UserController {

    @Resource
    private ProductClient productClient;

    @GetMapping("/user/test1")
    public String test1(Integer id){
        log.info("调用user.test1服务");
        return productClient.test1(id);
    }

}
